/* ======================================= */
/* SCHOOL.CSS                              */
/* ======================================= */

/* Section */
.tools-section {
  padding: 2rem;
}

.tools-section h1 {
  font-size: 2rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.tools-section .intro {
  text-align: center;
  color: #aeb5be;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Link reset */
.tool-card-link {
  text-decoration: none !important;
  color: inherit;
  outline: none;
  display: block;
}

.tool-card-link:focus,
.tool-card-link:active {
  outline: none;
  text-decoration: none;
}

/* ======================================= */
/* Cards - zelfde “rijke” look als AI-tools */
/* ======================================= */
.tool-card {
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;

  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border-color));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  border-color: var(--link-color);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.tool-card:active {
  transform: translateY(-2px) scale(0.99);
}

/* Icon */
.tool-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  object-fit: contain;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.tool-card:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px var(--link-color));
}

/* Title & text */
.tool-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--link-color);
  text-decoration: none;
}

.tool-card p {
  font-size: 0.95rem;
  color: #aeb5be;
  margin-bottom: 0;
  flex-grow: 1;
  text-decoration: none;
  line-height: 1.55;
}

/* Idea Card */
.idea-card {
  position: relative;
  text-decoration: none;
}

.idea-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;

  background: color-mix(in srgb, var(--link-color) 85%, #8250df);
  border: 1px solid color-mix(in srgb, var(--link-color) 35%, transparent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.idea-card:hover .idea-badge {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

/* Coming Soon Card (als je die later gebruikt) */
.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

.coming-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: #f59e0b;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .tools-section {
    padding: 1rem;
  }

  .tiles {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .category-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
  }

  .tool-card h3 {
    font-size: 1.1rem;
  }
}

/* ======================================= */
/* LIGHT MODE */
/* ======================================= */
:root.light-mode .tools-section h1 {
  color: #0969da;
}

:root.light-mode .tools-section .intro {
  color: #24292f;
}

:root.light-mode .tool-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid color-mix(in srgb, #0969da 10%, #d0d7de);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

:root.light-mode .tool-card:hover {
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
  border-color: #0969da;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

:root.light-mode .tool-card h3 {
  color: #0969da;
}

:root.light-mode .tool-card p {
  color: #57606a;
}

:root.light-mode .tool-card:hover img {
  filter: drop-shadow(0 0 10px #0969da);
}

:root.light-mode .idea-badge {
  background: #8250df;
  border-color: rgba(130, 80, 223, 0.25);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

:root.light-mode .idea-card:hover .idea-badge {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}